package ast;

import java.util.*;

public class JmmClass {

  public Loc class_loc;
  public String class_id;
  public Ident class_inh;
  public FieldList class_fields;

  public JmmClass(Loc class_loc_init, String class_id_init, Ident class_inh_init, FieldList class_fields_init) {

    class_loc = class_loc_init; class_id = class_id_init;
    class_inh = class_inh_init; class_fields = class_fields_init;  }

  public void accept(Visitor v) { v.visit(this); }


    // AJOUT POUR LE TYPAGE

    public JmmClass super_class;
    // attributes:HashMap(String -> Attribute)
    public HashMap attributes;
    // constructors:HashSet(Profile)
    public HashSet constructors;
    // methods:HashMap(String -> HashSet(Profile))
    public HashMap methods;

  }
